#!usr/bin/env python  
# -*- coding: utf-8 -*-
""" 
@author:Simon
@file: objdemo11.py 
@time: 2018/01/18 
"""
from enum import Enum

Month = Enum('Month',('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep'))

for name, member in Month.__members__.items():
    print(name,'=>',member,',',member.value)

class Gender(Enum):
    Male = 0
    Female = 1

class Student(object):

    def __init__(self,name, gender):
        self.name = name
        self.gender = gender

simon = Student('Simon',Gender.Male)

if simon.gender == Gender.Male:
    print('测试通过')